package com.st.swagger.mapper;

import com.st.swagger.entity.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {
    List<Order> findAll();

    List<Order> findByUserId(Long userId);

    Order findById(Long id);

    int insertOrder(Order order);

    int updateOrder(Order order);

    int deleteOrder(Long id);
}
